package com.gpslw.mvc.bean;


import com.gpslw.mvc.EnumValid;
import com.gpslw.mvc.enums.Level;
import com.gpslw.mvc.enums.Sex;
import lombok.Data;

import java.time.LocalDate;

@Data
public class Person {

    private String name;

    private Long id;

    private LocalDate birthDay;

    private SexEnum sexEnum;

    @EnumValid(enumType = Sex.class, verifyMethod = "isValid")
    private Integer sex;

    @EnumValid(enumType = Level.class, verifyMethod = "isValid")
    private Integer level;

}
